<!DOCTYPE html>
<html>
<!--   v1.6.6.2 RDPROJECT-140 yl 2013-10-23 start-->
<#assign web_title='我的好友 - ${webname!}'>
<#assign web_description='我的好友，${webname!}p2p网贷平台'>
<!--   v1.6.6.2 RDPROJECT-140 yl 2013-10-23 end--> 
<#include "../../include/resource.html">
<body>
	<#assign nid="member"> 
	<#include "../../include/header.html">
	<!--header-end-->
	<!--用户中心的主栏目 开始-->
	<div id="main" class="clearfix" >
		<div class="wrap950 " style="margin-top:0">
			<!--左边的导航 开始-->
			<div class="user_left">
            <#assign mid="m_friend" >
            <#include "../user_menu.html"></div>
			<!--左边的导航 结束-->
		<div class="user_right">
			<!--右边的内容 开始-->
			<div class="user_right_menu">
				<#assign query_type="myfriend">
				<#include "friend_menu.html" >
			</div>
			<div class="user_right_main">
				<!--我的好友 开始-->
				<div class="user_main_title" style="height:30px; padding-top:7px;"> 
				&nbsp; &nbsp; &nbsp; 用户名：<input type="text" name="username" id="username" value="${username!}" /> <input value="搜索" type="button"   class="btn-action"  onclick="sousuo()"  />
				</div>
				<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" style="width:100%">
					  <form action="" method="post">
						<tr class="head" >
							<td  >对方名称</td>
							<td  >加入时间</td>
							<td  >好友说明</td>
							<td  >操作</td>
						</tr>
						<#if (list?exists)&&(list?size>0)>
						<#list list as item>
						<tr>
							<td><a href="${webroot}/user/show.html?user_id=${item.friends_userid?c}" target="_blank">${item.friends_username?default('')}</a></td>
							<td>${dateformat(item.addtime)}</td>
							<td>-</td>
							<td>
								<a href="${request.getContextPath()}/member/friend/delfriend.html?username=${item.friends_username}">删除好友</a>  
								<a href="${request.getContextPath()}/member/friend/blackfriend.html?username=${item.friends_username}">设为黑名单</a>
							</td>
						</tr>
						</#list>
						</#if>
					</table>
				</form>	
				</div>
				<!--我的好友 结束-->
			</div>
			<!--右边的内容 结束-->
		</div>
	</div>
	<!--用户中心的主栏目 结束-->
	<!-- v1.6.6.2 RDPROJECT-288 lhm 2013-10-17 start -->
	<script>
	var url = 'myfriend.html?search=true';
    function sousuo(){
        var sou = "";
        var username = $("#username").val();
        if (username!=""){
            sou += "&username="+username;
        }
        if (sou!=""){
            location.href=url+sou;
        } else {
        	 location.href=url;
        }
    }
	</script>
	<!-- v1.6.6.2 RDPROJECT-288 lhm 2013-10-17 end -->
	<script
		src="${request.getContextPath()}${theme_dir}/media/js/modal.js"></script>

	<#include "../../include/footer.html">
</body>
</html>